package com.fesine.ch02.setNewPropertiesLockOne;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/8 16:29
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/8 16:29
 */
public class Run {
    public static void main(String[] args) throws InterruptedException {
        UserInfo userInfo = new UserInfo();
        Service service = new Service();
        ThreadA a = new ThreadA(service, userInfo);
        a.setName("a");
        a.start();
        Thread.sleep(50);
        ThreadB b = new ThreadB(service, userInfo);
        b.setName("b");
        b.start();
    }
}
